package com.example.javagd.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

/**
 * @program: java-general-development
 * @description:
 * @author: hzy
 * @create: 2021-04-07 19:53
 **/
@Controller
@RequestMapping("/sys")
@Slf4j
public class SystemController {
    private String prefix = this.getClass().getAnnotation(RequestMapping.class).value()[0];

    @ApiOperation(value = "模板: get方法返回login page")
    @GetMapping("/login")
    public Object GetTemplatePage() {
        return prefix + "/login";
    }
}
